package com.authService.controller;

import com.github.pagehelper.PageInfo;
import com.microcdy.sys.feign.SysUserFeign;
import com.microcdy.sys.pojo.SysUser;
import entity.Result;
import entity.StatusCode;
import org.apache.el.parser.Token;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：cdy
 * @date ：Created in 2020/11/16 17:16
 * @description：www.cdyong.cn
 */
@RestController
public class AuthController {

    @Autowired
    private SysUserFeign sysUserFeign;

    /***
     *
     * @return
     */
    @PostMapping(value = "/login/{id}" )
    public  Result<SysUser> Login(@PathVariable int id){
        return  sysUserFeign.findById((long)id);
    }
}
